/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: jse2204 - Var4
 * <p>Powered by webrx On 2022-08-29 14:46:30
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Var4 {
    public static void main(String[] args) {
        int a = 60;
        //默认类型转换
        long i = 60;
        //默认类型转换,精度由低向高是默认
        i = a;


        //强制类型转换，精度由高向低

        int x = 6;
        byte y = (byte) x; //强制类型转换
        System.out.println(x);
        System.out.println(y);

    }
}
